package random;

import java.util.ArrayList;
import java.util.List;

public class SublistTest {

    public static void main(String[] args) {
        List<String> masterString = new ArrayList<>();
        masterString.add("one");
        masterString.add("two");
        masterString.add("three");

        List<String> branchList = masterString.subList(1,2);
        masterString.add("four");
        for (String t :branchList){
            System.out.println(t);
        }
    }
}
